package cn.itcast.zt.java8.treeMap;

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * create by zhangtian105 on 2022/4/10
 */
@Getter
@Setter
@Builder
public class Menu {
    private Integer id ;
    private String name ;
    private Integer parentId ;
    public List<Menu> childList ;

    public Menu(Integer id, String name, Integer parentId) {
        this.id = id ;
        this.name = name ;
        this.parentId = parentId ;
    }

    public Menu(Integer id, String name, Integer parentId, List<Menu> childList) {
        this.id = id ;
        this.name = name ;
        this.parentId = parentId ;
        this.childList = childList ;
    }
}
